package com.zy.design.pattern.adapter.comb;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhaoyi
 * @date 2021/4/14 17:00
 * 模拟ceph提供文件服务
 */
public class CephFile {

    private Map<String,byte[]> map = new HashMap<>();

    public void putObject(byte[] data,String path) {
        System.out.println("ceph 上传数据到" + path);
        map.put(path,data);
    }

    public byte[]  getObject(String path) {
        System.out.println("ceph 下载数据" + path);
        return map.get(path);
    }


}
